Media File Pushing Method, Media File Server, and Media File Pushing System

ABSTRACT

A media file pushing method, a media file server, and a media file pushing system relate to the field of communications technologies and are configured to resolve a problem that a user cannot quickly obtain a media file satisfying a pushing requirement of the user. The method includes obtaining search information from a user, where the search information includes time information, and the time information indicates a requirement of the user on playback duration of a media file, determining playback content of the media file based on a preset content determining rule, obtaining at least one target media file satisfying the time information and the playback content from a media file resource library based on the time information and the playback content of the media file, and presenting the at least one target media file in a pushing interface.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No.16/295,593 filed on Mar. 7, 2019, which is a continuation ofInternational Patent Application No. PCT/CN2017/099366 filed on Aug. 28,2017, which claims priority to Chinese Patent Application No.201610808142.X filed on Sep. 7, 2016. The disclosures of theaforementioned applications are hereby incorporated by reference intheir entireties.

TECHNICAL FIELD

This application relates to the field of communications technologies,and in particular, to a media file pushing method, a media file server,and a media file pushing system.

BACKGROUND

When a user watches a video using a terminal such as a mobile phone or acomputer, the following application scenario may exist. The user has notime to watch an entire video program, for example, an entire movie, butwatches some short video programs using short fragmented time, forexample, watches a news program, a funny video, or an essential part ofa movie at breakfast time. In this case, the user enters a key word onthe terminal to search for a video satisfying a requirement of the user.

In other approaches, after the user enters the key word on the terminal,videos pushed by the terminal to the user may not satisfy a watchingrequirement of the user, and the user still needs to screen the videos.For example, the user wants to watch a video about local news for about10 minutes. When the user enters a key word “news,” a video server maypush all news videos, and playback duration of the videos varies. Inthis case, the user still needs to click/tap a video details page toview video duration information, or duration information is displayedusing a playback control bar after a video is played back to furtherobtain, through screening, a video satisfying a duration requirement ofthe user. In this case, the user may give up watching due to timeconsumed for searching for a related video.

SUMMARY

This application provides a media file pushing method, a media fileserver, and a media file pushing system to resolve a problem that a usercannot quickly obtain a media file satisfying a pushing requirement ofthe user.

To achieve the foregoing objective, the following technical solutionsare used in this application.

According to one aspect, this application provides a media file pushingmethod, including obtaining search information entered by a user, wherethe search information includes at least time information, and the timeinformation indicates a requirement of the user on playback duration ofa media file, determining playback content of the media file based on apreset content determining rule, obtaining at least one target mediafile that satisfies the time information and the playback content from amedia file resource library based on the time information and theplayback content of the media file, and presenting the at least onetarget media file in a pushing interface.

The time information included in the search information may be a timerange or fixed duration.

Optionally, the search information may be a search key word from theuser, and the search key word includes at least a duration key word. Forexample, the user enters a search key word “10 minutes+news,” “10minutes” is a duration key word, and “news” is a content key word.

Optionally, when the user searches for a media file using a terminal,the terminal displays a plurality of time-based search fields for theuser to select. Therefore, the search information entered by the usermay further be a search field selected by the user from all time-basedsearch fields displayed by the terminal. For example, the terminaldisplays the following time-based search fields: “breakfast,” “afternoontea,” and “dinner,” and the user may select any one of the searchfields.

As can be learned, compared with the other approaches in which the usercannot quickly obtain a media file satisfying a pushing requirement ofthe user, in this application, a media file server can determine therequirement of the user on the playback duration of the media file basedon the time information in the search information entered by the user,determine the playback content of the media file based on the presetcontent determining rule, and further push, to the user, only the atleast one media file that satisfies the duration requirement and theplayback content, but does not push another media file that does notsatisfy the pushing requirement such that time consumed by the user tosearch for the media file can be reduced, and the user can quicklyobtain the media file satisfying the pushing requirement of the user,thereby improving user experience.

In a possible design, when the search information entered by the userincludes only the time information, when determining the playbackcontent of the media file, the media file server determines, based on ahistorical playback record of the user, at least one content categorywhose playback frequency of the user satisfies a preset requirement, anddetermines any one of the at least one content category as a targetcontent category, and determines playback content satisfying the targetcontent category as the playback content of the media file. For example,if the search information entered by the user is “10 minutes,” the mediafile server can only determine, based on the search information, thatthe requirement of the user on the duration of the media file is “10minutes.” To determine the playback content of the media file, the mediafile server determines, by viewing a historical watching record of theuser, that the user usually watches media files of a variety andentertainment category and a sports category. Then, the media fileserver may determine the variety and entertainment category or thesports category as the target content category, and determine playbackcontent belonging to the target content category as the playback contentof the media file.

In this embodiment, the media file server can determine the targetcontent category of the media file based on the historical playbackrecord of the user, and further determine the playback contentsatisfying the target content category as the playback content of themedia file. The playback content that is of the media file and that isdetermined using this implementation is based on the historical playbackrecord of the user, and can be closer to an actual requirement of theuser. Further, the media file server pushes, to the user, only the atleast one media file that satisfies the time information and theplayback content, but does not push another media file that does notsatisfy the pushing requirement such that the time consumed by the userto search for the media file can be reduced, and the user can quicklyobtain the media file satisfying the pushing requirement of the user,thereby improving user experience.

In a possible design, when the search information entered by the userincludes only the time information, and the media file server stores acontent category pre-stored by the user, when the playback content ofthe media file is determined, a preset content category is determined asthe target content category, and playback content satisfying the targetcontent category is determined as the playback content of the mediafile.

In this embodiment, the media file server can determine the pre-storedcontent category as the target content category, and further determinethe playback content satisfying the target content category as theplayback content of the media file. The playback content that is of themedia file and that is determined using this implementation is based onuser setting, and can satisfy a requirement of the user on the playbackcontent. Further, the media file server pushes, to the user, only the atleast one media file that satisfies the time information and theplayback content, but does not push another media file that does notsatisfy the pushing requirement such that the time consumed by the userto search for the media file can be reduced, and the user can quicklyobtain the media file satisfying the pushing requirement of the user,thereby improving user experience.

In a possible design, when the search information entered by the userfurther includes a content key word, when the playback content of themedia file is determined, playback content including the content keyword is determined as the playback content of the media file based onthe content key word. For example, if the search information entered bythe user is a search key word “10 minutes+news,” the media file servercan determine, based on “10 minutes,” that the requirement of the useron the duration of the media file is 10 minutes, and determine, based on“news,” that a requirement of the user on content of the media file is amedia file of a news category.

In this embodiment, the media file server can determine the playbackcontent of the media file based on the content key word entered by theuser. The playback content that is of the media file and that isdetermined using this implementation is based on the content key wordentered by the user, and can satisfy the requirement of the user on theplayback content. Further, the media file server pushes, to the user,only the at least one media file that satisfies the time information andthe playback content, but does not push another media file that does notsatisfy the pushing requirement such that the time consumed by the userto search for the media file can be reduced, and the user can quicklyobtain the media file satisfying the pushing requirement of the user,thereby improving user experience.

In a possible design, obtaining at least one target media file thatsatisfies the time information and the playback content from a mediafile resource library based on the time information and the playbackcontent of the media file further includes searching the media fileresource library to determine whether the media file resource libraryincludes the target media file that satisfies the time information andthe playback content, and editing at least one media file whose playbackfrequency satisfies the preset requirement into the target media filethat satisfies the time information and the playback content if themedia file resource library does not include the target media file.

In this embodiment, when the target media file is obtained from themedia file resource library, if the media file that satisfies the timeinformation and the playback content can be found, the found media filemay be used as a to-be-pushed target media file. If the media filecannot be found, a media file having a relatively high playbackfrequency may be edited to obtain the target media file that satisfiesthe time information and the playback content. Further, only the atleast one media file that satisfies the time information and theplayback content is pushed to the user, and another media file that doesnot satisfy the pushing requirement is not pushed such that the timeconsumed by the user to search for the media file can be reduced, andthe user can quickly obtain the media file satisfying the pushingrequirement of the user, thereby improving user experience.

In a possible design, when presenting the at least one target media filein the pushing interface, the media file server pushes a plurality oftarget media files based on playback popularity or quantities ofplayback times such that the user selects, from the plurality of targetmedia files, a media file that the user intends to play back.

In this embodiment, the media file server can push the target mediafiles to the user based on the playback popularity and the quantities ofplayback times of media files, and further push, to the user, only theat least one media file that satisfies the time information and theplayback content, but does not push another media file that does notsatisfy the pushing requirement such that the user selects, from thetarget media files, the media file that the user intends to play back.Therefore, the time consumed by the user to search for the media filecan be reduced, and the user can quickly obtain the media filesatisfying the pushing requirement of the user, thereby improving userexperience.

According to another aspect, this application further provides a mediafile server, capable of implementing functions performed by the mediafile server in the method example. The functions may be implementedusing hardware, or by hardware executing corresponding software. Thehardware or the software includes one or more modules corresponding tothe foregoing functions.

In a possible design, a structure of the media file server includes aprocessor and a transceiver, and the processor is configured to supportthe media file server in performing the corresponding functions in themethod. The transceiver is configured to support communication betweenthe media file server and another network element. The media file servermay further include a memory. The memory is coupled to the processor,and stores a program instruction and data that are required by the mediafile server.

According to still another aspect, this application provides a computerstorage medium configured to store a computer software instruction usedby the media file server, and the computer software instruction includesa program designed to perform the foregoing aspect.

According to yet another aspect, this application provides a media filepushing system, including the media file server provided in thisapplication and a terminal. The terminal is configured to display atleast one target media file pushed by the media file server.

In the media file pushing method, the media file server, and the mediafile pushing system that are provided in this application, compared withthe other approaches in which the user cannot quickly obtain the mediafile satisfying the pushing requirement of the user, in thisapplication, the media file server can determine the requirement of theuser on the duration of the media file using the time information in thesearch information entered by the user, determine the playback contentof the media file based on the preset content determining rule, andfurther push, to the user, only the media file that satisfies theduration requirement and the playback content, but does not push anothermedia file that does not satisfy the pushing requirement such that thetime consumed by the user to search for the media file can be reduced,and the user can quickly obtain the media file satisfying the pushingrequirement of the user, thereby improving user experience.

BRIEF DESCRIPTION OF DRAWINGS

To describe the technical solutions in some of the embodiments of thisapplication art more clearly, the following briefly describes theaccompanying drawings describing some of the embodiments. Theaccompanying drawings in the following description show merely someembodiments of this application, and a person of ordinary skill in theart may still derive other drawings from these accompanying drawingswithout creative efforts.

FIG. 1 is a schematic structural diagram of a media file pushing systemaccording to an embodiment of this application;

FIG. 2 is a schematic structural diagram of another media file pushingsystem according to an embodiment of this application;

FIG. 3 is a schematic flowchart of a media file pushing method accordingto an embodiment of this application;

FIG. 4 is a schematic diagram of an interface used for entering searchinformation on a terminal according to an embodiment of thisapplication;

FIG. 5 is a schematic diagram of another interface used for enteringsearch information on a terminal according to an embodiment of thisapplication;

FIG. 6 is a schematic flowchart of another media file pushing methodaccording to an embodiment of this application;

FIG. 7 is a schematic structural diagram of a media file serveraccording to an embodiment of this application;

FIG. 8 is a schematic structural diagram of another media file serveraccording to an embodiment of this application; and

FIG. 9 is a schematic structural diagram of a computer device accordingto an embodiment of this application.

DESCRIPTION OF EMBODIMENTS

The following clearly describes the technical solutions in theembodiments with reference to the accompanying drawings in theembodiments.

A media file pushing method provided in the embodiments of thisapplication may be applied to an application scenario in which a userplays back a media file using a terminal.

As shown in FIG. 1, an embodiment of this application provides a mediafile pushing system applied to this application scenario. The media filepushing system includes a terminal 101 and a media file server 102.

The terminal 101 may be any device having a media file searching andplayback function, for example, a mobile phone, a tablet computer, or asmart television. The media file server 102 can communicate with theterminal 101 and push a media file to the terminal 101.

The media file pushing method provided in the embodiments of thisapplication may further be applied to an application scenario of airsharing. Air sharing means that a series of operations such astransmission, parsing, presentation, and controlling of multimediacontent may be performed on different multimedia terminals using anIntelligent Grouping and Resource Sharing protocol, the Miracastprotocol, and the like and using a WI-FI network connection to sharepresented content on different platform devices, and enrich a multimedialife of a user. For example, after the air sharing technology is used, amovie on a mobile phone can be played back on a television, an image ona tablet computer can be shared on a television, and content on acomputer can be projected to a television.

As shown in FIG. 2, an embodiment of this application provides a mediafile pushing system applied to the application scenario of air sharing.The media file pushing system includes a first terminal 201, a mediafile server 202, and a second terminal 203.

The first terminal 201 may be a device such as a mobile phone, a smartband, a tablet computer, or an intelligent remote control. The mediafile server 202 is configured to find a media file based on searchinformation that is entered by a user using the first terminal 201, andpush the media file to the second terminal 203. The second terminal 203may be a device such as a smart television including a set top box, atablet computer, or a mobile phone, and is configured to play back themedia file pushed by the media file server 202.

An embodiment of this application provides a media file pushing method.The media file pushing method may be performed by the media file servershown in FIG. 1 or FIG. 2. This embodiment of this application isdescribed using an example in which the media file pushing methodprovided in this embodiment of this application is applied to the systemarchitecture shown in FIG. 2. In addition, a media file in thisembodiment of this application includes various files such as an audiofile, a video file, and an image file. This embodiment of thisapplication is described using an example in which the media file is avideo file.

As shown in FIG. 3, the method includes the following steps.

Step 301. The media file server obtains search information that isentered by a user using a first terminal.

The search information includes at least time information, and the timeinformation is used to indicate a requirement of the user on duration ofa media file. Further, the time information may be a time range, a fixedtime value, or a time-based search field. When the time information is atime range, for example, “10 minutes to 30 minutes,” it may bedetermined that the requirement of the user on the duration of the mediafile is a media file whose playback duration is “10 minutes to 30minutes.” When the time information is a fixed time value, therequirement of the user on the duration of the media file is a timerange of fluctuation about the time value. For example, if the timeinformation is “30 minutes,” it may be determined that the requirementof the user on the duration of the media file is a media file whoseplayback duration is about 30 minutes, for example, 25 minutes to 35minutes. When the time information is a time-based search field, forexample, afternoon tea or breakfast, the requirement that is indicatedby the time information and that is of the user on the duration of themedia file is a statistical value based on the time scenario. Forexample, breakfast time of the user is usually 10 minutes to 30 minutes,and the indicated duration requirement is 10 minutes to 30 minutes.

Optionally, the search information may further include a content keyword related to a to-be-pushed media file, for example, a name of themedia file, or a name of an actor in the media file. The content keyword is used to indicate a requirement of the user on content of themedia file.

In a specific embodiment, the search information entered by the user maybe a search key word entered by the user, and the search key wordincludes at least a time key word.

As shown in FIG. 4, an embodiment of this application provides aschematic diagram of an interface used for entering search informationon the first terminal. When the user intends to search for the mediafile in a manner of entering a key word, after selecting “Search keyword” by clicking/tapping, the user may enter corresponding key words onlocations, for example, “Enter a key word 1,” “Enter a key word 2,” and“Enter a key word 3” in FIG. 4, on corresponding search boxes on a popupinterface. After determining that the entered search key words arecorrect, the user may click/tap “Send” to trigger the first terminal tosend the search information to the media file server. The user mayalternatively click/tap a reset button to re-enter a key word.

For example, the search information may be a search key word including aplurality of key word fields entered by the user on the search boxesdisplayed by the first terminal 201, for example, “10 minutes+news,” or“half an hour+the Titanic.” “10 minutes” and “half an hour” are timeinformation, and may indicate a requirement of the user on watchingduration of the media file, and “news” and “the Titanic” are content keywords, and may indicate the requirement of the user on the content ofthe media file.

In another specific embodiment, when the user searches for the mediafile using the first terminal 201, the first terminal 201 displays aplurality of time-based search fields for the user to select. The searchinformation is a time-based search field selected by the user.

As shown in FIG. 5, an embodiment of this application provides aschematic diagram of another interface used for entering searchinformation on the first terminal. When the user intends to search forthe media file by selecting a time-based search field, after selecting“Time-based search field” by clicking/tapping, the user may select atime-based search field from a plurality of search fields displayed on apopup interface, for example, breakfast, lunch, and afternoon tea. Afterdetermining that the selected search field is correct, the user mayclick/tap Send, to trigger the first terminal to send the searchinformation to the media file server. The user may alternativelyclick/tap a reset button to re-select a time-based search field.

It should be noted that when the method is applied to the system shownin FIG. 1, the search information is search information that is enteredby the user using the terminal 101.

Step 302. The media file server determines playback content of a mediafile based on a preset content determining rule.

When the search information entered by the user includes only the timeinformation, when the playback content of the media file is determined,first, a target content category of the media file may be determined,and then, playback content satisfying the target content category isdetermined as playback content of a to-be-pushed media file.

When the media file server stores a content category pre-stored by theuser, the target content category may be a preset content category.

For example, if the preset content category is a variety andentertainment category, playback content belonging to the variety andentertainment category is directly determined as the playback content ofthe to-be-pushed media file.

The target content category may alternatively be a target contentcategory that is determined by the media file server based on aparticular rule. For a specific implementation process, refer to thefollowing specification.

When the search information entered by the user further includes thecontent key word, when the playback content of the media file isdetermined, playback content including the content key word isdetermined as the playback content of the media file based on thecontent key word. For example, if the search information entered by theuser is the search key word “10 minutes+the Titanic,” the media fileserver can determine, based on “10 minutes,” that the requirement of theuser on the duration of the media file is 10 minutes, and determine,based on “the Titanic,” that the playback content of the media file isplayback content related to the Titanic.

Step 303. The media file server obtains at least one target media filethat satisfies time information and the playback content from a mediafile resource library based on the time information and the playbackcontent of the media file.

Media files stored in the media file resource library are various mediafile segments having different duration and edited by an operator or acontent provider. When the target media file is obtained from the mediafile resource library, if the media file that satisfies the timeinformation and the playback content can be found, the found media filemay be used as the to-be-pushed target media file, or if the media filethat satisfies the time information and the playback content cannot befound, at least one media file whose playback frequency satisfies apreset requirement may be edited to obtain the target media file thatsatisfies the time information and the playback content.

For example, if the requirement of the user on the duration of the mediafile is half an hour, and the requirement on the content of the mediafile is a movie A, statistics are collected on content or segments thata plurality of users watch when they watch the movie A within half anhour, and one or more media file segments having relatively highwatching frequencies are edited into a target media file having durationof half an hour.

Step 304. The media file server presents the at least one target mediafile in a pushing interface, and sends the at least one target mediafile to a second terminal.

In an embodiment, if there are a plurality of target media files, thetarget media files are sequentially presented in the pushing interfacebased on playback popularity or quantities of playback times such thatthe user selects, from the plurality of target media files, a media filethat the user intends to play back.

It should be noted that when the method is applied to the systemarchitecture shown in FIG. 1, the media file server 102 may push aplurality of target media files to the terminal 101.

In the media file pushing method provided in this application, comparedwith the other approaches in which the user cannot quickly obtain amedia file satisfying a pushing requirement of the user, in thisapplication, the media file server can determine the requirement of theuser on the duration of the media file using the time information in thesearch information entered by the user, determine the playback contentof the media file based on the preset content determining rule, andfurther push, to the user, only the media file that satisfies theduration requirement and the playback content, but does not push anothermedia file that does not satisfy the pushing requirement such that timeconsumed by the user to search for the media file can be reduced, andthe user can quickly obtain the media file satisfying the pushingrequirement of the user, thereby improving user experience.

As shown in FIG. 6, an embodiment of this application further provides amedia file pushing method. The method is applied to an applicationscenario in which search information includes only time information. Themethod includes the following steps.

Step 401. A media file server obtains search information that is enteredby a user using a first terminal, where the search information includesat least time information, and the time information indicates arequirement of the user on playback duration of a media file.

For a specific implementation process of this step, refer to step 301,and details are not described herein again.

Step 402. Determine, based on a historical playback record of the user,at least one content category whose playback frequency of the usersatisfies a preset requirement.

The historical playback record of the user may be a playback recordwithin a time period, for example, one month or two weeks. The presetrequirement may be a requirement on a quantity of times, and that theplayback frequency satisfies the preset requirement means that theplayback frequency is greater than or equal to a particular quantity oftimes.

During specific implementation, in an embodiment, a category to whichmedia files that the user usually watches belong may be determined basedon the historical playback record using a big data statistics method.

For example, it may be learned, by collecting statistics on a watchingrecord of the user within one month, that within this time period, theuser watches programs of a variety and entertainment category for n1times, watches programs of a sports category for n2 times, watchesprograms of a news category for n3 times, and watches emotionaltelevision series for n4 times. If n1 and n3 both are greater than thepreset requirement on the quantity of times, it is determined thattarget content categories corresponding to a user A are the variety andentertainment category and the news category.

Step 403. The media file server determines any one of the at least onecontent category as a target content category, and determines playbackcontent satisfying the target content category as playback content ofthe media file.

Optionally, media file content watched by some users is similar, and itmay be considered that the users belong to a same target contentcategory. Then, a media file played back by another user belonging tothe same target content category is determined as the playback contentof the media file based on a watching record of the another user. Forexample, the user A and a user B usually watch media files of thevariety and entertainment category. When a media file is pushed to theuser A, a media file that the user B has watched but the user A does notwatch may be determined, based on a watching record of the user B, asthe media file to be pushed to the user A.

Step 404. The media file server obtains at least one target media filethat satisfies the time information and the playback content from amedia file resource library based on the time information and theplayback content of the media file.

For a specific implementation process of this step, refer to step 303,and details are not described herein again.

Step 405. The media file server presents the at least one target mediafile in a pushing interface, and sends the at least one target mediafile to a second terminal.

For a specific implementation process of this step, refer to step 304,and details are not described herein again.

Optionally, when the target content category corresponding to the useris determined, watching time corresponding to the user may further bedetermined, to obtain a target content category corresponding to thewatching time. Then, when the time information included in the searchinformation is a time-based search field selected by the user, a mediafile corresponding to the time information can be pushed.

For example, it may be learned, by collecting statistics on a historicalplayback record of the user within one month, that a media file categoryof the user corresponding to breakfast time is a news category, a mediafile category corresponding to afternoon tea time (three o'clock to fiveo'clock pm) is an entertainment category, a media file categorycorresponding to dinner time is an emotional television series category,and a media file category corresponding to time (nine o'clock to 12o'clock pm) before the user goes to sleep is a movie category. When thetime information entered by the user is the afternoon tea, a media filecorresponding to the afternoon tea is presented in the pushinginterface.

In the media file pushing method provided in this embodiment of thisapplication, when the search information entered by the user includesonly the time information, to be specific, a clear requirement isimposed only on duration of a to-be-pushed media file, but is notimposed on content of the to-be-pushed media file, statistics arecollected on the historical playback record of the user, a targetcontent category that the user usually watches is determined based onthe historical playback record, playback content of the target contentcategory is determined as playback content of the to-be-pushed mediafile, and a media file that satisfies the time information and thecontent category is pushed. The media file pushed using thisimplementation can be closer to an actual pushing requirement of theuser, thereby improving user experience.

The foregoing describes the solutions provided in the embodiments ofthis application mainly from the perspective of interaction betweennetwork elements. It may be understood that to implement the foregoingfunctions, each network element, for example, the media file server,includes corresponding hardware structures and/or software modulesperforming the functions. A person skilled in the art should be easilyaware that, in combination with the units and algorithm steps of theexamples described in the embodiments disclosed in this specification,this application can be implemented by hardware or a combination ofhardware and computer software. Whether a function is performed byhardware or by computer software driving hardware depends on particularapplications and design constraint conditions of the technicalsolutions. A technician may use different methods to implement thedescribed functions for the particular applications, but it should notbe considered that this implementation goes beyond the scope of thisapplication.

In the embodiments of this application, module or unit division may beperformed on the media file server based on the example of the method.For example, each function module may be obtained through division foreach corresponding function, or at least two functions may be integratedinto one processing module. The integrated module may be implemented ina form of hardware, or may be implemented in a form of a softwarefunction module. It should be noted that module division in theembodiments of this application is an example and is merely logicalfunction division. During actual implementation, there may be anotherdivision manner.

When each function module is obtained through division for eachcorresponding function, as shown in FIG. 7, an embodiment of thisapplication further provides a schematic diagram of a possible structureof the media file server 102 or the media file server 202 used in theforegoing embodiment. The media file server includes an obtaining module501, a processing module 502, and a pushing module 503. The obtainingmodule 501 is configured to support the media file server in performingstep 301 in FIG. 3 and step 401 in FIG. 6, to be specific, obtain searchinformation that is entered by a user using a first terminal, where thesearch information includes time information, and the time informationis used to indicate a requirement of the user on duration of a mediafile. The processing module 502 is configured to support the media fileserver in performing step 302 and step 303 in FIG. 3, to be specific,determine playback content of the media file based on a preset contentdetermining rule, and obtain at least one target media file thatsatisfies the time information and the playback content from a mediafile resource library based on the time information and the playbackcontent of the media file. The processing module 502 is furtherconfigured to support the media file server in performing step 402, step403, and step 404 in FIG. 6. The pushing module 503 is configured tosupport the media file server in performing step 304 in FIG. 3 and step405 in FIG. 6, to be specific, present the at least one target mediafile in a pushing interface, and send the at least one target media fileto a second terminal. All related content of the steps in the foregoingmethod embodiments may be referred to for the function descriptions ofthe corresponding function modules. Details are not described hereinagain.

When an integrated unit is used, as shown in FIG. 8, an embodiment ofthis application further provides a schematic diagram of a possiblestructure used in the foregoing embodiment. The media file serverincludes a processing module 601 and a communications module 602. Theprocessing module 601 is configured to control and manage an action ofthe media file server. For example, the processing module 601 isconfigured to support the media file server in performing processessteps 301, 302, 303, and 304 in FIG. 3, processes steps 401, 402, 403,404, and 405 in FIG. 4, and/or other processes of the technologydescribed in this specification. The communications module 602 isconfigured to support communication between the media file server andanother network entity, for example, communication between a functionmodule shown in FIG. 1 or FIG. 2 and a network entity. The media fileserver may further include a storage module 603 configured to storeprogram code and data of the media file server.

The processing module 601 may be a processor or a controller, forexample, may be a central processing unit (CPU), a general purposeprocessor, a digital signal processor (DSP), an application-specificintegrated circuit (ASIC), a field programmable gate array (FPGA) oranother programmable logic device, a transistor logic device, a hardwarecomponent, or any combination thereof. The processing module 601 mayimplement or execute various example logical blocks, modules, andcircuits that are described with reference to the content disclosed inthis application. The processing module 601 may also be a combination ofcomputing functions, for example, a combination of one or moremicroprocessors or a combination of a DSP and a microprocessor. Thecommunications module 602 may be a transceiver, a transmission/receivingcircuit, a communications interface, or the like. The storage module 603may be a memory.

When the processing module 601 is a processor, the communications module602 is a transceiver, and the storage module 603 is a memory, the mediafile server used in this embodiment of this application may be acomputer device shown in FIG. 9.

As shown in FIG. 9, an embodiment of this application provides acomputer device 700, including at least one processor 701, acommunications bus 702, a memory 703, and at least one transceiver 704.The processor 701, the memory 703, and the at least one transceiver 704are connected using the communications bus 702.

The processor 701 may be a general-purpose CPU, a microprocessor, anASIC, or one or more integrated circuits configured to control programexecution in the solutions of this application.

The communications bus 702 may include a path for transmittinginformation between the components. The transceiver 704 is configured tocommunicate with another device or a communications network such as theEthernet, a radio access network (RAN), or a wireless local area network(WLAN).

The memory 703 may be a read-only memory (ROM) or another type of staticstorage device capable of storing static information and instructions, arandom access memory (RAM) or another type of dynamic storage devicecapable of storing information and instructions, or may be anelectrically erasable programmable ROM (EEPROM), a compact disc ROM(CD-ROM), or other compact disc storage or optical disc storage(including a compressed optical disc, a laser disc, an optical disc, adigital universal optical disc, a BLU-RAY disc, and the like), amagnetic disk storage medium or another magnetic storage device, or anyother medium capable of carrying or storing expected program code in aform of instructions or data structures and capable of being accessed bya computer, but is not limited thereto. The memory 703 may independentlyexist and be connected to the processor using the bus. Alternatively,the memory 703 may be integrated with the processor 701.

The memory 703 is configured to store application program code forexecution of the solution of this application, and the execution iscontrolled by the processor 701. The processor 701 is configured toexecute the application program code stored in the memory 703.

During specific implementation, in an embodiment, the processor 701 mayinclude one or more CPUs, for example, a CPU 0 and a CPU 1 in FIG. 9.

During specific implementation, in an embodiment, the computer device700 may include a plurality of processors such as the processor 701 anda processor 707 in FIG. 9. Each of these processors may be a single-core(single-CPU) processor, or may be a multi-core (multi-CPU) processor.Herein, the processors 701 and 707 may be one or more devices, circuits,and/or processing cores used to process data (for example, a computerprogram instruction).

During specific implementation, in an embodiment, the computer device700 may further include an output device 705 and an input device 706.The output device 705 communicates with the processor 701, and maydisplay information in various manners. For example, the output device705 may be a liquid crystal display (LCD), a light emitting diode (LED)display device, a cathode ray tube (CRT) display device, a projector, orthe like. The input device 706 communicates with the processor 701, andmay receive an input of a user in various manners. For example, theinput device 706 may be a mouse, a keyboard, a touchscreen device, asensing device, or the like.

The computer device 700 may be a general-purpose computer device or adedicated computer device. During specific implementation, the computerdevice 700 may be a desktop computer, a portable computer, a networkserver, a personal digital assistant (PDA), a mobile phone, a tabletcomputer, a wireless terminal device, a communications device, anembedded device, or a device having a structure similar to that in FIG.9. This embodiment of this application does not limit a type of thecomputer device 700.

The methods or algorithm steps described with reference to the contentdisclosed in this application may be implemented in a hardware manner,or may be implemented in a manner of executing a software instruction bya processor. The software instruction may include a correspondingsoftware module. The software module may be stored in a RAM, a flashmemory, a ROM, an erasable programmable ROM (EPROM), an EEPROM, aregister, a hard disk, a removable hard disk, a CD-ROM, or a storagemedium in any other forms well-known in the art. A storage medium usedas an example is coupled to the processor such that the processor canread information from the storage medium, and can write information intothe storage medium. Certainly, the storage medium may be a part of theprocessor. The processor and the storage medium may be located in anASIC.

A person of skill in the art should be aware that in one or more of theforegoing examples, the functions described in this application may beimplemented using hardware, software, firmware, or any combinationthereof. When this application is implemented by software, thesefunctions may be stored in a computer-readable medium or transmitted asone or more instructions or code in the computer-readable medium. Thecomputer-readable medium includes a computer storage medium and acommunications medium, where the communications medium includes anymedium that enables a computer program to be transmitted from one placeto another. The storage medium may be any available medium accessible toa general or dedicated computer.

The objectives, technical solutions, and benefits of this applicationare further described in detail in the foregoing specific embodiments.It should be understood that the foregoing descriptions are merelyspecific embodiments of this application, but are not intended to limitthe protection scope of this application. Any modification orimprovement made based on the technical solutions of this applicationshall fall within the protection scope of this application.

What is claimed is:
 1. A media file pushing method implemented by acomputer system and comprising: receiving search information from aterminal, wherein the search information comprises time informationindicating a first playback duration; searching a media file resourcelibrary to determine whether the media file resource library comprises atarget media file satisfying the time information; determining a mediafile from the media file resource library when the media file resourcelibrary does not comprise the target media file satisfying the timeinformation, wherein a second playback duration of the media file isgreater than the first playback duration; editing the media file toobtain the target media file satisfying the time information; andsending the target media file to the terminal.
 2. The media file pushingmethod of claim 1, wherein determining the media file from the mediafile resource library comprises determining, based on a historicalplayback record indicating a quantity of playback times of the mediafile, the media file, wherein the quantity is greater than otherquantities of playback times of other media files.
 3. The media filepushing method of claim 1, wherein the time information comprises a timerange.
 4. The media file pushing method of claim 1, wherein the timeinformation comprises a fixed time duration.
 5. The media file pushingmethod of claim 1, wherein the time information comprises a time-basedsearch field.
 6. The media file pushing method of claim 1, wherein thesearch information further comprises a content key word.
 7. The mediafile pushing method of claim 1, wherein the terminal comprises a mobilephone, a smart band, a tablet computer, or an intelligent remotecontrol.
 8. The media file pushing method of claim 1, wherein the mediafile comprises an audio file, a video file, or an image file.
 9. Acomputer system comprising: a memory comprising instructions; and aprocessor coupled to the memory, wherein the instructions cause theprocessor to be configured to: receive search information from aterminal, wherein the search information comprises time informationindicating a first playback duration; search a media file resourcelibrary to determine whether the media file resource library comprises atarget media file satisfying the time information; determine a mediafile from the media file resource library when the media file resourcelibrary does not comprise the target media file satisfying the timeinformation, wherein a second playback duration of the media file isgreater than the first playback duration; edit the media file to obtainthe target media file satisfying the time information; and send thetarget media file to the terminal.
 10. The computer system of claim 9,wherein the instructions further cause the processor to be configured todetermine, based on a historical playback record indicating a quantityof playback times of the media file, the media file, wherein thequantity is greater than other quantities of playback times of othermedia files.
 11. The computer system of claim 9, wherein the timeinformation comprises a time range.
 12. The computer system of claim 9,wherein the time information comprises a fixed time duration.
 13. Thecomputer system of claim 9, wherein the time information comprises atime-based search field.
 14. The computer system of claim 9, wherein theterminal comprises a mobile phone, a smart band, a tablet computer, oran intelligent remote control.
 15. The computer system of claim 9,wherein the media file comprises an audio file, a video file, or animage file.
 16. A terminal comprising: a memory comprising instructions;and a processor coupled to the memory, wherein the instructions causethe processor to be configured to: receive search information comprisingtime information indicating a first playback duration; send the searchinformation to a remote computer; receive a target media file from theremote computer in response to sending the search information; andpresent the target media file, wherein the target media file is based ona source media file with a second playback duration that is greater thanfirst playback duration.
 17. The terminal of claim 16, wherein the timeinformation comprises a time range.
 18. The terminal of claim 16,wherein the time information comprises a fixed time duration.
 19. Theterminal of claim 16, wherein the time information comprises atime-based search field.
 20. The terminal of claim 16, wherein thetarget media file comprises an audio file, a video file, or an imagefile.